"use strict";
Object.defineProperty(exports, "__esModule", {
  value: true
});
App({
  onLaunch: function() {
    var _this = this;

    var logs = wx.getStorageSync('logs') || [];
    logs.unshift(Date.now());
    wx.setStorageSync('logs', logs);
    wx.login({
      success: function(_res) {}
    });
    wx.getSetting({
      success: function(res) {
        if (res.authSetting['scope.userInfo']) {
          wx.getUserInfo({
            success: function(res) {
              _this.globalData.userInfo = res.userInfo;
              if (_this.userInfoReadyCallback) {
                _this.userInfoReadyCallback(res.userInfo);
              }
            }
          });
        }
      }
    });
  },
  globalData: {
    // HOST: 'http://127.0.0.1:9000/service/xcx/'
    HOST: 'https://testservice.guoxueshutong.com/service/xcx/'
  },


});